<?php

namespace app\admin\validate;

use think\Validate;

class CarListValidate extends Validate
{
    protected $rule =   [
        'title' => 'require',
        'illustrate' => 'require',
        'image' => 'require',
        'modelId' => 'require',
        'kilo' => 'require',
        'registration' => 'require',
        'programme' => 'require',
    ];

    protected $message = [];

    protected $scene = [
        'add' => ['title', 'minPrice', 'illustrate', 'image', 'modelId', 'kilo', 'registration', 'programme'],
    ];
}